package alert

import (
	// "main/handlers"
	"main/middleware"

	"github.com/gin-gonic/gin"
)

func RegisterAlertRoutes(router *gin.Engine) {
	protected := router.Group("/easymonitor") // 可以根据需要调整路径
	protected.Use(middleware.AuthMiddleware())
	{
		protected.GET("/api/alert_list", GetAlertList)    // 获取告警列表
		protected.PUT("/api/alert_confirm", AlertConfirm) // 已确认告警原因，取消告警
	}
}
